package 泛型;

public class demo01 {
    public static void main(String[] args) {

        //
        QQ<String> a = new QQ<>();
        a.setName("qqq");

        String name = a.getName();
        System.out.println(name);

        //
        QQ<Integer> b = new QQ<>();
        b.setName(111);

        Integer name1 = b.getName();
        System.out.println(name1);

        b.method("q");
        b.method(1);

    }

}
